<?php
// +----------------------------------------------------------------------
// | HkCms 用户验证规则
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2019 http://www.hkcms.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 广州恒企教育科技有限公司 <admin@hkcms.cn>
// +----------------------------------------------------------------------

namespace app\content\validate;

use think\Validate;

class Urlrule extends Validate
{
    protected $rule = [
        'file' => 'require',
        'module' => 'require',
        'ishtml' => 'require',
        'example' => 'require',
        'urlrule' => 'require',
    ];

    protected $message  =   [
        'file.require' => 'URL规则名称必须填写！',
        'module.require' => '模块名称必须填写！',
        'ishtml.require'  => '是否生成静态必须填写！',
        'example.require' => 'URL示例必须填写！',
        'urlrule.require' => 'URL规则必须填写！',    
    ];

}